-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Contextualize quote and splice internals #6881
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Contextualize quote and splice internals #6881
Conversation
9753dc6
to
1fff5d6
Compare
581ea17
to
256f189
Compare
8f25235
to
9ec5b46
Compare
5b1ea48
to
3d170d1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
3d170d1
to
853e904
Compare
Rebased |
3d4e683
to
a16f640
Compare
6fbedc1
to
01649d7
Compare
Rebased and squashed commits |
* Define quote as ```def `'`[T](e: T): given QuoteContext => Expr[T]``` * Define splice as ```def `$`[T](expr: given QuoteContext => Expr[T]): T``` * Add missing QuoteContext in multistaged quotes
Add `-Yscala3ImplicitScopes` to eneble Scala 3 implicit scope rules under `-language:Scala2`
01649d7
to
34e26d3
Compare
Rebased |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, except for the concern raised by @smarter about introducing the flag -Yscala3ImplicitScopes
.
|
As discussed, we will remove the |
This reverts commit 34e26d3.
Did this PR cause a slow-down in some benchmarks, or is the benchmark website being misleading ? http://dotty-bench.epfl.ch/ (see "implicit cache I - from tasty", "Tuple22.tail") |
I will have a look at it. In theory it should not have affected those benchmarks. |
No description provided.